package com.ruicar.afs.cloud.bizcommon.gps.feign;

import com.alibaba.fastjson.JSONObject;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.Map;

/**
 * @author yaorui.zhang
 * @version 1.0
 * @Description 欧了GPS接口
 * @date create on 2020年6月5日 13:54:28
 * @since 1.0
 */
@FeignClient(name = "GpsOLEFeign", url = "${com.greatwall.systems.gps-system.url}")
public interface GpsOLEFeign {

    @ApiModelProperty(value = "新增工单")
    @PostMapping(value = "/ApiPlat/AddOrderWithVpsInfos")
    public JSONObject addOrderWithVpsInfos(@RequestBody JSONObject json, @RequestHeader Map<String, String> headers);

    @ApiModelProperty(value = "改派工单")
    @PostMapping(value = "/ApiPlat/updateOrderWithVpsInfos")
    public JSONObject updateOrderWithVpsInfos(@RequestBody JSONObject json, @RequestHeader Map<String, String> headers);

    @ApiModelProperty(value = "撤销工单")
    @GetMapping(value = "/ApiPlat/cancelOrderWithVpsInfos")
    public JSONObject cancelOrderWithVpsInfos(@RequestParam("AppCode") String appcode, @RequestHeader Map<String, String> headers);

    @ApiModelProperty(value = "获取工单综合信息")
    @GetMapping(value = "/ApiPlat/GetAllOrderInfoByAppCode")
    public JSONObject getAllOrderInfoByAppCode(@RequestParam("appcode") String appcode, @RequestHeader Map<String, String> headers);

    @ApiModelProperty(value = "获取工单定位信息")
    @GetMapping(value = "/GetAllEqPositionsByAppCode")
    public JSONObject getAllEqPositionsByAppCode(@RequestParam("appcode") String appcode, @RequestHeader Map<String, String> headers);

}
